package com.itheima.xiancheng.demo4;

public class Box {
    private int thDay;
    private boolean flag=false;

    public Box() {
    }

    public int getThDay() {
        return thDay;
    }

    public void setThDay(int thDay) {
        this.thDay = thDay;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
    public void put(int thDay){
        this.thDay=thDay;
        System.out.println("送奶工人正在放第"+thDay+"天的牛奶");
    }
    public void take(){
        System.out.println("地主家的少爷正在喝第"+thDay+"天的牛奶");
    }
}
